package cn.zclong.article.domain;

import cn.zclong.user.domain.User;

/*
 *发表的文章，帖子 
 */

public class Article {
	private String id;//唯一帖子标识码
	private String title;//帖子标题
	private long readnum;//阅读量
	private long time;//发帖时间
	private String message;//帖子正文
	private User user;//用户，发表人，多对一，一个用户发表多篇文章
	private String username;//用户名，发帖人
	private String uid;//发帖人id
	private int audit;//管理员是否审核
	
	
	public int getAudit() {
		return audit;
	}
	public void setAudit(int audit) {
		this.audit = audit;
	}
	public String getUid() {
		return uid;
	}
	public void setUid(String uid) {
		this.uid = uid;
	}
	public String getUsername() {
		return username;
	}
	public void setUsername(String username) {
		this.username = username;
	}
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public long getReadnum() {
		return readnum;
	}
	public void setReadnum(long readnum) {
		this.readnum = readnum;
	}
	public long getTime() {
		return time;
	}
	public void setTime(long time) {
		this.time = time;
	}
	public String getMessage() {
		return message;
	}
	public void setMessage(String message) {
		this.message = message;
	}
	public User getUser() {
		return user;
	}
	public void setUser(User user) {
		this.user = user;
	}
	@Override
	public String toString() {
		return "Article [id=" + id + ", title=" + title + ", readnum=" + readnum + ", time=" + time + ", message="
				+ message + ", user=" + user + "]";
	}
	
	
}
